Mega Code Archive

Categories
1) Android
2) ASP.Net
3) ASP.Net Tutorial
4) C
5) C Tutorial
6) C#
7) C# Book
8) C# by API
9) C# Tutorial
10) C++
11) C++ Tutorial
12) Delphi
13) Flash ActionScript
14) Flex
15) Java
16) Java Book
17) Java by API
18) Java Tutorial
19) JavaScript DHTML
20) JavaScript Reference
21) JavaScript Tutorial
22) MSOfficeExcel 2007 Tutorial
23) MSOfficePowerPoint 2007 Tutorial
24) MSOfficeWord 2007 Tutorial
25) MSSQL
26) MSSQL Tutorial
27) MySQL
28) MySQL Tutorial
29) Oracle PLSQL
30) Oracle PLSQL Tutorial
31) Perl
32) Php
33) PostgreSQL
34) Python
35) Python Tutorial
36) Ruby
37) Silverlight
38) VB.Net
39) VB.Net by API
40) VB.Net Tutorial
41) Visual C++ .NET
42) VisualBasic Script
43) XML
44) XML Tutorial
 
Java Tutorial
1) 2D Graphics
2) Ant
3) Apache Common
4) Class Definition
5) Collections
6) Data Type
7) Database
8) Design Pattern
9) Development
10) EJB3
11) Email
12) File
13) Generics
14) Hibernate
15) Internationalization
16) J2EE Application
17) J2ME
18) JPA
19) JSP
20) JSTL
21) JUnit
22) Language
23) Log
24) Network
25) Operators
26) PDF
27) Reflection
28) Regular Expressions
29) Security
30) Servlet
31) Spring
32) Statement Control
33) Swing
34) Swing Event
35) SWT
36) SWT 2D Graphics
37) Thread
38) Web Services SOA
39) XML
Swing Event
1) A ComponentAdapter
2) A position of a window on the screen
3) AbstractAction Lookup Property Keys
4) Action Usage Example
5) ActionEvent Example with One Button That Demonstrates Sources, Events, and Their Listeners
6) ActionEvent getActionCommand()
7) ActionMap javax swing JComponent getActionMap()
8) Activating a Keystroke When Any Child Component Has Focus
9) Activating a Keystroke When Any Component in the Window Has Focus
10) Add action listener to JTextField
11) Add nodes to a tree with tree node selection listener
12) Adding an InputMap to a Component
13) Adding HierarchyListener to JSplitPane
14) All the IDs for mouse events are defined in the MouseEvent class
15) Bind a keystroke to shift-space
16) Caret Events and Listeners
17) Change the backward focus traversal keys for the application
18) Change the forward focus traversal keys for a component
19) Changes the focus traversal keys for the entire application
20) Check the event source in actionPerformed method
21) ComboBox with ActionListener
22) ComboBox with ItemListener
23) ComponentListener and ComponentEvent
24) ContainerListener and ContainerEvent
25) Converting a KeyStroke to a String
26) Creating a Custom Event
27) Creating a KeyStroke
28) Creating a KeyStroke and Binding It to an Action
29) Creating an Action
30) Creating the GUI on the Event-Dispatching Thread
31) Custom Document Filter
32) Demonstrates key events
33) Demonstrates mouse motion events
34) Detecting Double and Triple Clicks
35) Determining If a Focus Lost Is Temporary or Permanent
36) Determining the Opposite Component of a Focus Event
37) Determining When a Component Is Added or Removed from a Container
38) Disable a character so that no action is invoked
39) Disable an Action
40) DocumentListener and DocumentEvent
41) Drag and drop image
42) Element Walker
43) Enabling an Action
44) Enabling Other Low-level Events
45) Event mask
46) Event object has information about an event, that has happened
47) Event source and listener
48) Extends AbstractAction
49) Extends ComponentAdapter
50) Extends PlainDocument to create a float value type text field
51) Extends PlainDocument to create alpha and numeric value based field field
52) Extends WindowAdapter
53) Find the previous focusable component
54) Finding the Next Focusable Component
55) Firing Item Events
56) Focus auto-setting
57) Focus Traversal
58) FocusListener and FocusEvent
59) Get and set Action Command
60) Get document from DocumentListener
61) Get event source from ActionEvent
62) Get key pressed as a key character (which is a Unicode character)
63) Get key pressed as a key code
64) Get Key Text
65) Get value of BoundedRangeModel in its change listener
66) Handle a window closing event
67) Handle mouse motion event
68) Handle mouse wheel event
69) Handling a mouse event
70) Handling an action listener
71) Handling Key Presses
72) Handling Mouse Clicks
73) Write a Component Listener
74) Write a Container Listener
75) Write a Document Listener
76) Write a Focus Listener
77) Write a Key Listener
78) Write a Mouse-Motion Listener
79) Write a Mouse-Wheel Listener
80) Write a Tree Expansion Listener
81) Write a Tree Selection Listener
82) Write a TreeModel Listener
83) Write an Item Listener
84) HyperlinkListener Example
85) Implement a document cleaner that maps lowercase letters to uppercase
86) Implement a graphical list selection monitor
87) Implements ActionListener and action class level variable
88) Implements AWTEventListener
89) Implements ListDataListener
90) Implements TreeSelectionListener
91) Implements VetoableChangeListener to block focus change events
92) In the event model, there are three participants
93) InputEvent BUTTON1_MASK (for left mouse button)
94) InputEvent BUTTON2_MASK (for middle mouse button)
95) InputEvent BUTTON3_MASK (for right mouse button)
96) InputMap javax swing JComponent getInputMap(int condition)
97) Install your own action to text component
98) Installsresets a ComponentListener to resize the given window to minWidthHeight if needed
99) Int java awt AWTEvent getID()
100) Int java awt event WindowEvent WINDOW_OPENED
101) InternalFrameEvent Event Subtypes
102) InternalFrameListener and InternalFrameEvent
103) ItemListener for JRadioButton
104) JComponent setFocusTraversalKeys(int arg0, Set extends AWTKeyStroke arg1)
105) JComponent WHEN_IN_FOCUSED_WINDOW
106) JEditorPane and HyperlinkEvent
107) KeyboardFocusManager
108) KeyboardFocusManager BACKWARD_TRAVERSAL_KEYS
109) KeyboardFocusManager FORWARD_TRAVERSAL_KEYS
110) KeyboardFocusManager getCurrentKeyboardFocusManager() clearGlobalFocusOwner()
111) KeyboardFocusManager getCurrentKeyboardFocusManager() getDefaultFocusTraversalKeys(KeyboardFocusManager BACKWARD_TRAVERSAL_KEY
112) KeyListener and KeyEvent
113) KeyStroke Class
114) KeyStroke getKeyStroke(F2)
115) KeyStroke Sample
116) KeyStroke to String
117) Limit JTextField input to a maximum length
118) List keystrokes in the WHEN_ANCESTOR_OF_FOCUSED_COMPONENT input map of the component
119) List keystrokes in the WHEN_IN_FOCUSED_WINDOW input map of the component
120) Listen to CaretEvent with CaretListener
121) Listening to All Key Events Before Delivery to Focused Component
122) Listening to Component Events with a PropertyChangeListener
123) Listening to InternalFrameListener
124) Listening to JComponent Events with a VetoableChangeListener
125) Listening to JComponent Events with an AncestorListener
126) Listening to JList Events with a ListSelectionListener
127) Listening to JMenu Events with a ChangeListener
128) Listening to JMenuItem Events with a MenuDragMouseListener
129) Listening to JMenuItem Events with a MenuKeyListener
130) Listening to JTable Events with a TableModelListener
131) Listening to JTextField Events with a DocumentListener
132) Listens for window iconify and deiconify events, so that it can stop the animation when the window isnt visible
133) Listing the Actions in a Component
134) Listing the Key Bindings in a Component
135) ListSelectionEvent
136) ListSelectionListener and ListSelectionEvent
137) ListSelectionModel and ListSelectionListener
138) ListSelectionModel, JTable and ListSelectionListener
139) Make sure that my Text field has the focus when a JFrame is created
140) Make the ENTER key act like the TAB key
141) Making a Window Handle its Own Events
142) Managing Listener Lists with AWTEventMulticaster
143) Managing Listener Lists with EventListenerList
144) Map actions with keystrokes
145) Modify a component
146) Mouse event popup menu triggered
147) MouseListener and MouseEvent
148) Moving focus to the next component
149) Multiple sources
150) No Focus Button
151) Null is returned if none of the components in this application has the focus
152) Null is returned if none of the windows in this application has the focus
153) Override $ key
154) Overriding - key
155) Overriding Default Typed Key Bindings in a JTextComponent
156) Overriding Many Default Typed Key Bindings in a JTextComponent
157) Overriding space key
158) Predefined Focus Traversal Policies
159) Press shift space or shift F2 to move the focus to the previous focusable component
160) Prevent the space from being inserted when shift-space is pressed
161) Process On Swing Event Thread
162) Register action
163) Register several listeners for one event
164) Registering a KeyStroke
165) Registers a change listener on a slider that controls animation speed The change listener ignores the change events until the
166) Remove all backward focus traversal keys for the application
167) Remove all forward focus traversal keys for the application
168) Removing listeners
169) Removing the Focus from the Application
170) Reports all internal frame events that occur on one internal frame
171) Request Focus inside a window
172) Restricting the Focus Cycle
173) Reversing Focus Traversal
174) Right click to trigger the popup menu
175) Semantic Event Listeners
176) Semantic Events
177) SetAWTKeyStroke java awt Container getFocusTraversalKeys(int id)
178) Setting Focus Traversal Keys for the Entire Application
179) Setting Focus Traversal Keys in a Component
180) Setting the Initial Focused Component in a Window
181) Shared ListSelectionHandler
182) Sharing an InputMap or an ActionMap Between Two Components
183) Subclasses of AWTEvent
184) Tab change listener
185) The event IDs defined in the FocusEvent class
186) The event IDs for the WindowEvent class
187) The event IDs that the KeyEvent class defines
188) The FocusListener Interface
189) The KeyListener Interface
190) The MouseListener Interface
191) The MouseMotionListener Interface
192) The MouseWheelListener Interface
193) The WindowFocusListener Interface
194) The WindowListener Interface
195) The WindowStateListener Interface
196) To find out when a tree node has been expanded or collapsed
197) Toggle button with ItemListener
198) Tree Will Expand Listener
199) TreeExpansionListener, TreeWillExpandListener
200) TreeSelectionEvent getNewLeadSelectionPath() getLastPathComponent()
201) TreeSelectionListener and TreeSelectionEvent
202) Use Adjustment Events in Swing
203) Use an Inner Class to handle the event
204) Use Focus Events in Swing
205) Use FocusTraversalPolicy
206) Use isFocusOwner to determine whether a particular component has the focus
207) Use KeyboardFocusManager
208) Use one inner class to handle events from two buttons
209) Uses a change listener on a date-field spinner to change the color of the text as the spinners date changes
210) Uses a change listener on the selection model of a color chooser to learn when the user changes the current color
211) Uses a subclass of MouseInputAdapter to listen to mouse events and mouse-motion events
212) Using Adapter Classes
213) Using an inner ActionListener class
214) Using ComponentListener to catch the JFrame Maximization event
215) Using ListDataListener to listen
216) Using MenuListener to listen to
217) Using PopupMenuListener
218) Using Property Change Listeners as Observers
219) Using SwingUtilities for Mouse Button Identification
220) Using WindowListener
221) Validate a value on the lostFocus event
222) Validating a JTextField When Permanently Losing the Focus
223) Void InputMap put(KeyStroke keyStroke, Object actionMapKey)
224) Void java awt Toolkit addAWTEventListener(AWTEventListener listener, long eventMask)
225) WindowListener, WindowFocusListener, WindowStateListener
226) Writing a listener as a nested class
227) Writing a Listener as an Anonymous Class